package com.example.wendao.view.viewholder;

import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.example.wendao.R;
import com.example.wendao.common.PageUtils;
import com.example.wendao.common.ViewHolderBind;
import com.example.wendao.model.entity.User;

public class FansViewHolder extends RecyclerView.ViewHolder implements ViewHolderBind<User> {

    private TextView fanslist_username;

    public FansViewHolder(@NonNull ViewGroup viewGroup) {
        super(PageUtils.inflateItemView(viewGroup, R.layout.fragment_listfans));
        fanslist_username = itemView.findViewById(R.id.fanslist_username);
    }
    public void bindTo(User user) {
        String content=user.getUsername();
        fanslist_username.setText(content);
    }
}
